<nzx-simple-table [nzxConfig]="config" [nzxData]="list" [nzxExpand]="true">
  <ng-template nzxTh width="160px">
    <button nz-button nzType="primary" (click)="add()">添加</button>
  </ng-template>

  <ng-template nzxTd key="class" let-data>
    {{ data.class | nzxMap : classMap }}
  </ng-template>
  <ng-template nzxTd key="course" let-data>
    {{ data.course | nzxMap : null : "*_*" | nzxSafeNull : "***" }}
  </ng-template>
  <ng-template nzxTd key="post" let-data>
    {{ data.post | nzxSafeNull : "组员" }}
  </ng-template>

  <ng-template nzxTd let-data>
    <button nz-button nzType="link" (click)="remove(data)">删除</button>
    <button nz-button nzType="link" (click)="data.expand = !data.expand">
      展开
    </button>
  </ng-template>

  <ng-template nzxExpandTr let-data>
    {{ data | json }}
  </ng-template>
</nzx-simple-table>

<nz-card nzTitle="nzxSafeUrl">
  <img [src]="unsafeUrl | nzxSafeUrl" />
</nz-card>
